import request from '@/utils/request'

export const EXPORT_URL = '/system/new/exportcardtype'

// 查询列表
export function listCardGroup(query) {
  return request({
    url: '/system/new/showcardtype',
    method: 'post',
    params: query
  })
}

// 查询详情
export function getCardGroup(id) {
  return request({
    url: '/system/edit/getcardtype?id=' + id,
    method: 'get'
  })
}

// 新增
export function addCardGroup(data) {
  return request({
    url: '/system/new/savecardtype',
    method: 'post',
    data: data
  })
}

// 修改
export function updateCardGroup(data) {
  return request({
    url: '/system/new/editcardtype',
    method: 'post',
    data: data
  })
}

// 删除
export function delCardGroup(ids) {
  return request({
    url: '/system/new/delcardtype/' + ids,
    method: 'DELETE',
  })
}
